package net.huashitong.giszd.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.sys.base.StringPKService;
import com.sirdc.modules.utils.ObjectUtils;
import net.huashitong.giszd.dao.NodeNewtempletDao;
import net.huashitong.giszd.entity.NodeNewtemplet;
import net.huashitong.giszd.filter.NodeNewtempletFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NodeNewtempletService extends StringPKService<NodeNewtemplet> {
    @Override
    protected BaseDao<NodeNewtemplet, String> getDao() {
        return null;
    }

    @Autowired
    private NodeNewtempletDao dao;

    /**
     * 查询
     * @param filter
     * @return
     */
    public List<NodeNewtemplet> getNodeTempletInfo(NodeNewtempletFilter filter){
//        if (ObjectUtils.isBlank(filter.getNodeType())){
//            filter.setNodeType("0");
//        }
        return dao.getNodeTempletInfo(filter);
    }
}
